<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
//require_once realpath(dirname(__FILE__).'/../../../application/config/constants.php');
/*
  |--------------------------------------------------------------------------
  | File and Directory Modes
  |--------------------------------------------------------------------------
  |
  | These prefs are used when checking and setting modes when working
  | with the file system.  The defaults are fine on servers with proper
  | security, but you may wish (or even need) to change the values in
  | certain environments (Apache running a separate process for each
  | user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
  | always be used to set the mode correctly.
  |
 */
//define('FILE_READ_MODE', 0644);
//define('FILE_WRITE_MODE', 0666);
//define('DIR_READ_MODE', 0755);
//define('DIR_WRITE_MODE', 0777);
////
/////*
////  |--------------------------------------------------------------------------
////  | File Stream Modes
////  |--------------------------------------------------------------------------
////  |
////  | These modes are used when working with fopen()/popen()
////  |
//// */
////
//define('FOPEN_READ', 'rb');
//define('FOPEN_READ_WRITE', 'r+b');
//define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
//define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
//define('FOPEN_WRITE_CREATE', 'ab');
//define('FOPEN_READ_WRITE_CREATE', 'a+b');
//define('FOPEN_WRITE_CREATE_STRICT', 'xb');
//define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
//
//if ('development' === ENVIRONMENT) {//开发模式
//    //淘宝
    	define('TB_APP_ID', '21286481');
	define('TB_APP_KEY', 'b2210a6977701bb0a9fd5cef229750a4');
	define('TB_REDIRECT_URI','http://121.43.116.17/huajitong1.1/flower.php');
	define('TB_AUTHTOKEN_URI','https://oauth.taobao.com/token');
	define('JD_APP_ID','3C29A89B1FE53D684CDFB4EBEC5AA592');
	define('JD_APP_KEY','4561907adc6b452eb91f3a49a897cb03');
	define('JD_REDIRECT_URI','http://103.235.242.215/jdong/index.php/callback');
	define('JD_AUTHTOKEN_URI','https://oauth.jd.com/oauth/token');
//} else {//线上正式模式
//    //淘宝
//    define('TB_APP_ID','21411616');
//    define('TB_APP_KEY','5b6dc6e19b13f312c233e74c8a37d615');
//    //京东
//    define('JD_APP_ID','3C29A89B1FE53D684CDFB4EBEC5AA592');
//    define('JD_APP_KEY','4561907adc6b452eb91f3a49a897cb03');
//}
////队列相关设置
define('REDIS_QUEUE_HOST','localhost'); //Redis服务器地址
define('REDIS_QUEUE_PORT','6379');
define('NUM_PER_MINUTE',300);//每分钟自动更新的淘宝订单数
//
//define('REQUEST_METHOD', isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '');
//define('IS_GET', REQUEST_METHOD == 'GET' ? true : false);
//define('IS_POST', REQUEST_METHOD == 'POST' ? true : false);
//define('IS_PUT', REQUEST_METHOD == 'PUT' ? true : false);
//define('IS_DELETE', REQUEST_METHOD == 'DELETE' ? true : false);
//define('IS_AJAX', ((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')) ? true : false);
/* End of file constants.php */
/* Location: ./application/config/constants.php */